package com.hongdee.crm.statistics.task.service;

import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

/**
 * Created by My on 2017/5/24.
 */
public interface ITCrmCarCountTaskService {

    /**
     * 事故车回厂保养率
     *
     * @return
     */
    public Integer accidentCarBackToFacQuartz() throws Exception;

    public Integer analyCompanyToaccidentCar(String monthTime, String companyId) throws Exception;

    /**
     * 质保到期回厂保养率
     *
     * @return
     * @throws Exception
     */
    public Integer warrantyCarBackToFacQuartz() throws Exception;


    /**
     * 保养车辆回场保养率
     *
     * @return
     * @throws Exception
     */
    public Integer mainainCarBackToFacQuartz() throws Exception;

    /***
     * 当前月向前推3个月
     * @param companyId
     * @param tabName
     * @return
     * @throws Exception
     */
    public List<String> getNowAndBeforThreeMonth(String companyId, String tabName) throws Exception;

    /*****
     * 生成定保车辆
     * @param monthTime
     * @param companyId
     * @return
     * @throws Exception
     */
    public Integer analyCompanyToDbCar(String monthTime, String companyId) throws Exception;

//    public Integer analyCompanyToWarrantyCar(String monthTime, String companyId) throws Exception ;

    /**
     * 事故车数据穿透明细
     * @param month
     * @param year
     * @param uid
     * @param type
     * @param start
     * @param limit
     * @return
     * @throws Exception
     */
    public Map<String,Object> sgCarPree(String companyId,String month,String year,String uid,String type,String start,String limit) throws Exception;

    /**
     * 质保回站率穿透查询
     * @param month
     * @param year
     * @param saId
     * @param uid
     * @param type
     * @param start
     * @param limit
     * @return
     * @throws Exception
     */
    public Map<String,Object> zbCarPree(String month,String year,String saId,String uid,String type,String start,String limit,String companyId) throws Exception;

    /**
     * 车辆定保回站率穿透明细
     * @param month
     * @param year
     * @param saId
     * @param uid
     * @param type
     * @param start
     * @param limit
     * @return
     * @throws Exception
     */
    public Map<String,Object> dbCarPree(String month, String year, String saId, String uid, String type, String start, String limit,String companyId) throws Exception;


    public Map<String,Object> getNowAndBeforThreeMonthMap(String companyId, String tabName) throws Exception;

}
